<?php

// print_r($parametri);

?>

<form action="<?php echo $this->webroot;?>Parametro/save" method="post" id="form">

	<fieldset>
	    <legend>
			<h4>Parametri</h4>
	    </legend>

		<label><?php echo __("Area tematica") ?></label>
		<p><select name='Parametro[area_tematica]'>
			<option value=''></option>";
			<?foreach ($categories as $key => $category) {?>
				<option value='<? echo $key?>' <?if($key == $parametri['Parametro']['area_tematica']) echo " selected='selected' " ?>  ><? echo $category ?></option>";
			<? } ?> 
		</select></p>

		<label><?php echo __("Area tematica default") ?></label>
		<p><select name='Parametro[area_tematica_default]'>
			<option value=''></option>";
			<?foreach ($categories as $atKey => $atd) {?>
				<option value='<? echo $atKey?>' <?if($atKey == $parametri['Parametro']['area_tematica_default']) echo " selected='selected' " ?>  ><? echo $atd ?></option>";
			<? } ?> 
		</select></p>
		
		<p>
			<button type="submit" class="btn btn-primary"><i class='icon-ok'></i></button>
		</p>
	</fieldset>

</form>
